package com.ds.infra.mq.core.storage;

import lombok.Data;

/**
 * 作用：封装主题和分区信息
 *
 * @author WeiShaoying
 */
@SuppressWarnings("all")
@Data
public class TopicPartition {

    private final String topic;

    private final int partition;

    @Override
    public String toString() {
        return topic + "-" + partition;
    }
}
